#!/usr/bin/env python
# encoding:utf-8
'''
@author: yangyongjie
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited. 
@contact: deamoncao100@gmail.com
software: garner
@file: __init__.py.py
@time: 2022/8/25 14:59
@desc:
'''


from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()

def init_app_db(app):
    db.init_app(app)
    #自动创建数据表 但是这要求你连接数据库的用户有创建权限
    db.create_all(app=app)

from . import user
from . import commodity
from . import order
from . import message
from . import category